package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.PzBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface PzService extends BaseService<PzBean> {

	PzBean getPzBeanById(String id) throws Exception;
	
	void removePzBeanById(String id) throws Exception;
	
	void removePzBeanByIds(String ids) throws Exception;
	
	PzBean savePzBean(PzBean crm) throws Exception;
	
	PzBean updatePzBean(PzBean crm) throws Exception;
	
	Page<PzBean>  findPzBeanByCond(PzBean bean,
			Page<PzBean> page, String orderByName, boolean asc)
			throws Exception;
	void savePzBeanExt(String sql) throws Exception;

	String findPzBeanExtCreate(String tableName) throws Exception;

	String findPzBeanExtEdit(String tableName, String id)
			throws Exception;

	String findPzBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasPzBeanExtData(String tableName, String id)
			throws Exception;
}